<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>add_video (MySpace::RestV9)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File myspace/API/RestV9.rb, line 149</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_video</span>(<span class="ruby-identifier">person_id</span>,<span class="ruby-identifier">album_id</span>,<span class="ruby-identifier">caption</span>,<span class="ruby-identifier">description</span>,<span class="ruby-identifier">tags</span>,<span class="ruby-identifier">language</span>,<span class="ruby-identifier">data</span>,<span class="ruby-identifier">mscategories</span>,<span class="ruby-identifier">contentType</span>,<span class="ruby-identifier">params</span>={})
         <span class="ruby-identifier">ct</span>={<span class="ruby-value str">'Content-Type'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">contentType</span>}
         <span class="ruby-ivar">@context</span>.<span class="ruby-identifier">call_myspace_api</span>(<span class="ruby-identifier">:mediaItem_v9_add</span>,<span class="ruby-identifier">params</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">:person_id=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">person_id</span>,<span class="ruby-identifier">:headers=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">ct</span>,<span class="ruby-identifier">:album_id=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">album_id</span>,<span class="ruby-identifier">:type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;VIDEO&quot;</span>,<span class="ruby-identifier">:caption=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">caption</span>,<span class="ruby-identifier">:body=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">data</span>,<span class="ruby-identifier">:mscategories=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">mscategories</span>,<span class="ruby-identifier">:language=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">language</span>,<span class="ruby-identifier">:tags=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">tags</span>,<span class="ruby-identifier">:description=</span><span class="ruby-operator">&gt;</span><span class="ruby-identifier">description</span>))
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>